<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="mobileOptimized" content="240" />
<meta name="format-detection" content="telephone=no" />
<title>Insert title here</title>
</head>
<body>
<h1>输入正则表达式</h1>
<input type="text" id="reg" value=""/>
<br/>
<h4>匹配文本</h4>
<textarea id="source" style="height: 100px;width: 500px" rows="5" cols="5">1,2,3,4,5,1,2,3,2,3,a,d,4</textarea>
<br/>
<h5>匹配结果</h5>
<div id="result"></div>
<button onclick="star()">测试</button>
<script type="text/javascript" src="js/base.js"></script>
</body>
</html>